package com.njworkorder.Service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.njworkorder.Entity.AoAp;
import com.njworkorder.Service.AoApService;
import com.njworkorder.Mapper.AoApMapper;
import org.springframework.stereotype.Service;


/**
* @author iron
* @description 针对表【ao_ap】的数据库操作Service实现
* @createDate 2025-03-19 11:16:27
*/
@Service
public class AoApServiceImpl extends ServiceImpl<AoApMapper, AoAp>
    implements AoApService{

    @Override
    public Page<AoAp> getAoaps(int pageIndex, int pageSize) {

        LambdaQueryWrapper<AoAp> wrapper = new LambdaQueryWrapper<AoAp>()
                .select(AoAp::getUuid)
                .apply("1=1")
                .groupBy(AoAp::getUuid);

        return page(new Page<>(pageIndex, pageSize), wrapper);
    }
}




